<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <!-- <div onclick="fn1('ww')" class="throttle">
    <div class="item">123</div>
    <div class="item">123</div>

  </div> -->
    <div class="demo">
      <div class="middle">
      </div>
      <div class="load">Loading...</div>
    </div>

    <button onclick="debounce(fn,2000)">nnnnnn</button>
</body>
<script src="./1.基础.js"></script>
<script>
  fetch("https://appdy3bnnsj9558.h5.xiaoeknow.com/coupon/get/cou_65097a466204b-sYcTla").then((res)=>{

  })
  let fn = ()=>{
    console.log("触发");
  }
</script>
<style>
  *{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: s;
    align-items: center;
    flex-direction: c;
  }
  body{
    background-color: #fff;
  }
  .demo{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border-radius: 50%;
  }
  .load{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
  }
  .middle{
    width: 100px;
    height: 100px; 
    border-radius: 50%;
    background: linear-gradient(#16b921,transparent 40%);
    animation: rotate 1s linear infinite;
  }
  .middle::before{
    content: "";
    position: absolute;
    width:calc(100% - 10px);
    height:calc(100% - 10px);
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    border-radius: 50%;
  }
  .middle::after{
    content: "";
    position: absolute;
    width:100%;
    height:100%;
    background:linear-gradient(#18ca51,transparent 40%);;
    border-radius: 50%;
    z-index: -1;
    filter: blur(5px);

  }
  @keyframes rotate {

    /* 需要兼容的自行补入噢 */
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
      filter: hue-rotate(360deg);
    }
  }

 
</style>
<script src="./1.基础.js"></script>

</html>